package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_subject")
@NoArgsConstructor
public class SubjectEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;

    public SubjectEntity(String name) {
        this.name = name;
    }

    public SubjectEntity(Long id, String name,Integer status) {
        this.id = id;
        this.name = name;
        super.setStatus(status);
    }
}
